<div id="InputForm">
<?php

$imgProp=array(
	      		'src' => $carInfo[0]->LitenBild,
          		'width' => '91',
          		'height' => '68',
          		'title' => $carInfo[0]->Modell,
				);
echo img($imgProp);
echo '<br/>';
echo $carInfo[0]->Modell;
echo '<br/>';

?>
       <table width="350" border="1">
          <tr>
            <th scope="col">Start tid</th>
            <th colspan="3" scope="col"><?php echo $startDate ?></th>
          </tr>
          <tr>
            <th scope="col">Slut tid</th>
            <th colspan="3" scope="col"><?php echo $endDate ?></th>
          </tr>
          <tr>
            <th scope="col">&nbsp;</th>
            <th scope="col">&nbsp;</th>
            <th scope="col">&nbsp;</th>
            <th scope="col">&nbsp;</th>
          </tr>
          <tr>
            <th scope="col">&nbsp;</th>
            <th scope="col">Antal</th>
            <th scope="col">Pris</th>
            <th scope="col">Total</th>
          </tr>
          
		  <?php
		   if(isset($weeks))
		   {
		   echo	
			  '<tr>
	            <th scope="row">Veckor</th>
	            <td><div align="center">'.$weeks['veckor'].'</div></td>
	            <td><div align="center">'.$weeks['veckoPris'].' SEK</div></td>
	            <td><div align="center">'.$weeks['veckoTotal'].' SEK</div></td>
	          </tr>';
		  }
		
		  if (isset($days))
		  {  
			  echo
	          '<tr>
	            <th scope="row">Dagar</th>
	            <td><div align="center">'.$days['dagar'].'</div></td>
	            <td><div align="center">'.$days['dagPris'].' SEK</div></td>
	            <td><div align="center">'.$days['dagTotal'].' SEK</div></td>
	          </tr>';
		  }
          if (isset($hours))
		  {
		  echo
			'<tr>
            <th scope="row">Timmar</th>
            <td><div align="center">'.$hours['timmar'].'</div></td>
            <td><div align="center">'.$hours['timPris'].' SEK</div></td>
            <td><div align="center">'.$hours['timTotal'].' SEK</div></td>
          </tr>';
		  }
		  
		  if ($discount)
		  {
		  	echo
			'<tr>
            <th scope="row">Rabatt</th>
            <td><div align="center">&nbsp;</div></td>
            <td><div align="center">&nbsp;</div></td>
            <td><div align="center">'.$discount.' SEK</div></td>
          </tr>';
		  }
		  
		  
		  ?>
		   <tr>
            <th scope="col">&nbsp;</th>
            <th scope="col">&nbsp;</th>
            <th scope="col">&nbsp;</th>
            <th scope="col">&nbsp;</th>
          </tr>
           <tr>
		    <th scope="row">Att betala</th>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td><div align="center"><?php echo $totalPriceOfOrder; ?> SEK</div></td>
          </tr>
        </table>



<?php echo form_open('booking/totalprice');?>
<?php echo '<input type="hidden" name="txtStartDate" value="'.$startDate.'"/>
			<input type="hidden" name="txtEndDate" value="'.$endDate.'"/>
			<input type="hidden" name="txtCarId" value="'.$carID.'"/>
			<input type="hidden" name="txtTotalPrice" value="'. $totalPriceOfOrder.'"/>
			<input type="hidden" name="txtDiscountCode" value="'.$discountCode.'"/>
			
			';
			
		
?>
	<ul>
		<li>
			<label>Rabatt kod:</label>
			<div>
				<?php echo form_input(array('id'=>'discount','name'=>'discount')); ?> <?php echo $message;?>
				<?php echo form_submit(array('id'=>'checkdiscount', 'name'=>'btnDiscount'),'Annvänd'); ?>
				<?php echo form_submit(array('id'=>'confirm', 'name'=>'btnConfirm'),'Bekräfta bokning'); ?>
			</div>
		</li>
	
	</ul>
<?php echo form_Close() ?>
</div>
